using Microsoft.EntityFrameworkCore;
namespace Blog.Models;

public class BlogDb : DbContext
{
    public DbSet<Blogs>Blogs{get;set;}=null!;

        protected override void OnConfiguring(DbContextOptionsBuilder options)
        => options.UseSqlServer($"Server=.\\SQLEXPRESS;database=XiaoZhu;uid=sa;pwd=123456;TrustServerCertificate=True;");
}